<template>
  <div>
      <h1>|门店申请</h1>
      <Center>      
          <el-radio-group v-model="labelPosition" size="small">
</el-radio-group>
<div style="margin: 20px;"></div>
<el-form :label-position="labelPosition" label-width="80px" :model="formLabelAlign">
  <el-form-item label="名称">
    <el-input v-model="formLabelAlign.name" style="width:20%"></el-input>
  </el-form-item>
  <el-form-item label="执照号码">
    <el-input v-model="formLabelAlign.region" style="width:20%"></el-input>
  </el-form-item>
  <el-form-item label="营业地址">
    <el-input v-model="formLabelAlign.type" style="width:20%"></el-input>
  </el-form-item>
  <el-form-item label="定位">
    <el-input v-model="formLabelAlign.type" style="width:20%"></el-input>
  </el-form-item>
  <el-form-item label="法人">
    <el-input v-model="formLabelAlign.type" style="width:20%"></el-input>
  </el-form-item>
  <el-form-item label="联系电话">
    <el-input v-model="formLabelAlign.type" style="width:20%"></el-input>
  </el-form-item>
  <el-form-item label="特色">
    <el-input v-model="formLabelAlign.type" style="width:20%"></el-input>
  </el-form-item>
  <el-form-item label="佣金比例">
    <el-input v-model="formLabelAlign.type" style="width:20%"></el-input>
  </el-form-item>
</el-form>
<h1>店员属性</h1>
<el-table
    :data="tableData"
    style="width: 50%"
    max-height="250">
    <el-table-column
      fixed
      prop="name"
      label="姓名"
      width="100">
    </el-table-column>
    <el-table-column
      prop="duty"
      label="职级"
      width="150">
    </el-table-column>
    <el-table-column
      prop="tel"
      label="联系电话"
      width="150">
    </el-table-column>
    <el-table-column
      fixed="right"
      label="操作"
      width="120">
      <template slot-scope="scope">
        <el-button
          @click.native.prevent="deleteRow(scope.$index, tableData)"
          type="text"
          size="small">
          删除
        </el-button>
      </template>
    </el-table-column>
  </el-table>
      </Center>
  </div>
</template>

<script>
import Center from '../components/Center.vue'
export default {
    component:{Center},
    method:{
        deleteRow(index, rows) {
        rows.splice(index, 1);
      }
    },
    data() {
      return {
        labelPosition: 'right',
        formLabelAlign: {
          name: '',
          region: '',
          type: ''
        },
        tableData: [{
          date: '2016-05-03',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }, {
          date: '2016-05-02',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }, {
          date: '2016-05-04',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }, {
          date: '2016-05-01',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }, {
          date: '2016-05-08',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }, {
          date: '2016-05-06',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }, {
          date: '2016-05-07',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }]
      };
    }
  }
</script>

<style>

</style>